package cn.edu.sjtu.literature.web.util;

import java.text.SimpleDateFormat;

public class Constants {

	public static final String SESSION_USER_KEY = "sessionUser";

	public static final String MESSAGE_KEY = "message";
	public static final String ERROR_MESSAGE_KEY = "errorMessage";
	public static final String SUCCESS_MESSAGE_KEY = "successMessage";

	public static final String FIELD_ERROR_KEY = "FieldError";
	public static final String FIELD_ERROR_KEY_01 = "fieldError01";
	public static final String FIELD_ERROR_KEY_02 = "fieldError02";
	public static final String FIELD_ERROR_KEY_03 = "fieldError03";
	public static final String FIELD_ERROR_KEY_04 = "fieldError04";
	public static final String FIELD_ERROR_KEY_05 = "fieldError05";
	public static final String FIELD_ERROR_KEY_06 = "fieldError06";
	public static final String FIELD_ERROR_KEY_07 = "fieldError07";
	public static final String FIELD_ERROR_KEY_08 = "fieldError08";
	public static final String FIELD_ERROR_KEY_09 = "fieldError09";
	public static final String FIELD_ERROR_KEY_10 = "fieldError10";
	
	public static final String LITERATURE = "literature";
	public static final String LITERATURES = "literatures";
	public static final String LITERATURE_QUERY = "literatureQuery";
	public static final String CATEGORIES = "categories";
	
	public static final String VIEW_LOGIN_FORM = "login.jsp";
	public static final String VIEW_LITERATURE_FORM = "literature/form.jsp";
	public static final String VIEW_LITERATURE_LIST = "literature/list.jsp";
	public static final String VIEW_LITERATURE_EXPORT = "literature/export.jsp";
	public static final String VIEW_LITERATURE_IMPORT = "literature/import.jsp";
	public static final String VIEW_LITERATURE_MESSAGE = "literature/message.jsp";
	
	public static final SimpleDateFormat NORMAL_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
	public static final SimpleDateFormat NORMAL_DATETIME_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
}
